<template>
    <div>
        <h2>我是home里面的Message</h2>
        <router-link class="list-group-item" v-for="item in messageList" :key="item.id" :to="`/home/message/detail/${item.id}?hello=hello`">{{item.title}}</router-link>
        <router-view></router-view>
    </div>
</template>

<script>
export default {
    name: "HomeMessage",
    mounted(){
        setTimeout(() => {
            this.messageList = [{id:1,title:'title001',content:'title001'},{id:2,title:'title002',content:'title002'}]
        },1000)
    },

    data(){
        return {
            messageList: []
        }
    }
}
</script>